package calendar.messages;

import edu.gmu.middleware.Message;
import edu.gmu.streams.BlockInputStream;
import edu.gmu.streams.BlockOutputStream;
import java.io.IOException;

/* this class represents a single user */
public class Result implements Message
{
  
  public boolean result;

  public Result()
  {
    result = false;
  }

  public boolean getResult()
  {
    return this.result;
  }

  public void setResult( boolean result )
  {
    this.result = result;
  }

  public void marshal(BlockOutputStream stream) throws IOException
  {
    stream.writeBoolean( result );
  }
  public void unmarshal(BlockInputStream stream) throws IOException
  {
    this.result = stream.readBoolean();
}
}
